<?php
	require('Tourny/tourny_functions.php');
	dblogin();
		
	$gameid = $_GET['gameid'];
	$tid = $_GET['tid'];
	$gamept = 'Error, contact webmaster';
		
	$query = 
	'select t.t_id, t.gamea_id, t.gameb_id,
			t.gamea_gp, t.gameb_gp
	 from TOURNY t
	 where t.t_id = '.$tid;	 
	 if($result = mysql_query($query)){
		if($row = mysql_fetch_array($result)){
			if($gameid == $row['gamea_id']){
				$gamept = $row['gamea_gp'];	
			}	
			if($gameid == $row['gameb_id']){
				$gamept = $row['gameb_gp'];	
			}
		}
	}		
?>
<div id="hov_gp">
	<h1>  Game Point Rules </h1>
	<textarea> <?php echo $gamept; ?></textarea>
</div>